home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{03B95A9D-DBDD-11D2-87A3-97F32F5E191C}#1.1#0"; "DSIELink.ocx"
- Begin VB.Form FrmDemo1
- BorderStyle = 3 'Fixed Dialog
- Caption = "Demo of the URL link control.."
- ClientHeight = 3735
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 7170
- Icon = "FrmDemo1.frx":0000
- LinkTopic = "FrmDemo1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3735
- ScaleWidth = 7170
- StartUpPosition = 2 'CenterScreen
- Begin VB.Frame Frames
- Caption = "Styles..."
- Height = 1815
- Index = 4
- Left = 4680
- TabIndex = 17
- Top = 1320
- Width = 2415
- Begin VB.CheckBox DatShowTooltip
- Caption = "Show Tooltip"
- Height = 195
- Left = 480
- TabIndex = 19
- Top = 480
- Value = 1 'Checked
- Width = 1335
- End
- Begin DSIELink.IELink Links
- Height = 225
- Index = 2
- Left = 240
- TabIndex = 18
- Top = 240
- Width = 690
- _ExtentX = 1217
- _ExtentY = 397
- Caption = "Test Link"
- URL = "file://C:\"
- Hover = 0 'False
- IESync = 3
- End
- Begin VB.Label LblLabels
- AutoSize = -1 'True
- Caption = $"FrmDemo1.frx":0442
- Height = 1050
- Index = 2
- Left = 120
- TabIndex = 20
- Top = 720
- Width = 2250
- WordWrap = -1 'True
- End
- End
- Begin VB.Frame Frames
- Caption = "Mouse behaviour..."
- Height = 2295
- Index = 1
- Left = 2640
- TabIndex = 9
- Top = 1320
- Width = 1935
- Begin VB.Frame Frames
- Caption = "URL MousePointer..."
- Height = 735
- Index = 3
- Left = 120
- TabIndex = 15
- Top = 1440
- Width = 1695
- Begin VB.ComboBox DatPointer
- Height = 315
- Left = 120
- Style = 2 'Dropdown List
- TabIndex = 16
- Top = 240
- Width = 1455
- End
- End
- Begin VB.Frame Frames
- Caption = "URL Response..."
- Height = 855
- Index = 2
- Left = 120
- TabIndex = 10
- Top = 480
- Width = 1695
- Begin VB.OptionButton DatResponse
- Caption = "&On MouseClick"
- Height = 255
- Index = 1
- Left = 120
- TabIndex = 12
- Top = 480
- Width = 1455
- End
- Begin VB.OptionButton DatResponse
- Caption = "&On MouseDown"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 11
- Top = 240
- Value = -1 'True
- Width = 1455
- End
- End
- Begin DSIELink.IELink Links
- Height = 225
- Index = 1
- Left = 120
- TabIndex = 14
- Top = 240
- Width = 690
- _ExtentX = 1217
- _ExtentY = 397
- Caption = "Test Link"
- Hover = 0 'False
- End
- End
- Begin VB.Frame Frames
- Caption = "Styles..."
- Height = 1575
- Index = 0
- Left = 120
- TabIndex = 4
- Top = 1320
- Width = 2415
- Begin DSIELink.IELink Links
- Height = 225
- Index = 0
- Left = 240
- TabIndex = 13
- Top = 240
- Width = 690
- _ExtentX = 1217
- _ExtentY = 397
- Caption = "Test Link"
- Style = 0
- Hover = 0 'False
- End
- Begin VB.OptionButton DatStyle
- Caption = "&Graphical (See Form 3)"
- Enabled = 0 'False
- Height = 255
- Index = 3
- Left = 240
- TabIndex = 8
- Top = 1200
- Width = 2055
- End
- Begin VB.OptionButton DatStyle
- Caption = "&Hover (Focus) Underline"
- Height = 255
- Index = 2
- Left = 240
- TabIndex = 7
- Top = 960
- Width = 2055
- End
- Begin VB.OptionButton DatStyle
- Caption = "&Always Underline"
- Height = 255
- Index = 1
- Left = 240
- TabIndex = 6
- Top = 720
- Width = 1575
- End
- Begin VB.OptionButton DatStyle
- Caption = "&Never Underline"
- Height = 255
- Index = 0
- Left = 240
- TabIndex = 5
- Top = 480
- Value = -1 'True
- Width = 1455
- End
- End
- Begin VB.CommandButton BtnDemo
- Caption = "Demo &Form 3"
- Height = 375
- Index = 1
- Left = 6000
- TabIndex = 1
- ToolTipText = "Graphical Approach Style? Click here for more..."
- Top = 120
- Width = 1095
- End
- Begin VB.CommandButton BtnDemo
- Caption = "&Demo Form 2"
- Height = 375
- Index = 0
- Left = 4800
- TabIndex = 0
- ToolTipText = "IE Synchronised Properties? Click here for more..."
- Top = 120
- Width = 1095
- End
- Begin VB.Label LblLabels
- AutoSize = -1 'True
- Caption = "This form shows the different styles and methods of text display for the URL Control."
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 3
- Top = 1080
- Width = 5970
- WordWrap = -1 'True
- End
- Begin VB.Label LblLabels
- AutoSize = -1 'True
- Caption = $"FrmDemo1.frx":04C9
- Height = 780
- Index = 0
- Left = 720
- TabIndex = 2
- Top = 120
- Width = 3690
- WordWrap = -1 'True
- End
- Begin VB.Image ImgLogo
- Height = 480
- Left = 120
- Picture = "FrmDemo1.frx":0587
- Top = 120
- Width = 480
- End
- Attribute VB_Name = "FrmDemo1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub BtnDemo_Click(Index As Integer)
- Me.Hide
- If Index = 0 Then
- FrmDemo2.Show
- Else
- FrmDemo3.Show
- End If
- End Sub
- Private Sub DatPointer_Click()
- FrmDemo1.Links(1).MousePointer = FrmDemo1.DatPointer.ListIndex
- End Sub
- Private Sub DatPointer_KeyPress(KeyAscii As Integer)
- FrmDemo1.Links(1).MousePointer = FrmDemo1.DatPointer.ListIndex
- End Sub
- Private Sub DatPointer_Scroll()
- FrmDemo1.Links(1).MousePointer = FrmDemo1.DatPointer.ListIndex
- End Sub
- Private Sub DatResponse_Click(Index As Integer)
- FrmDemo1.Links(1).Response = Index
- End Sub
- Private Sub DatShowTooltip_Click()
- FrmDemo1.Links(2).ShowToolTip = (FrmDemo1.DatShowTooltip.Value = 1)
- End Sub
- Private Sub DatStyle_Click(Index As Integer)
- FrmDemo1.Links(0).Style = Index
- End Sub
- Private Sub Form_Load()
- 'Handle the "Response" property demo...
- If App.PrevInstance Then
- MsgBox "You clicked the URL!!"
- End
- End If
- FrmDemo1.DatPointer.AddItem "{Default}"
- FrmDemo1.DatPointer.AddItem "Arrow"
- FrmDemo1.DatPointer.AddItem "Cross"
- FrmDemo1.DatPointer.AddItem "I-Beam"
- FrmDemo1.DatPointer.AddItem "Icon"
- FrmDemo1.DatPointer.AddItem "Size"
- FrmDemo1.DatPointer.AddItem "SizeNESW"
- FrmDemo1.DatPointer.AddItem "SizeNS"
- FrmDemo1.DatPointer.AddItem "SizeNWSE"
- FrmDemo1.DatPointer.AddItem "SizeEW"
- FrmDemo1.DatPointer.AddItem "Up Arrow"
- FrmDemo1.DatPointer.AddItem "Hourglass"
- FrmDemo1.DatPointer.AddItem "No Drop"
- FrmDemo1.DatPointer.AddItem "Arrow and Hourglass"
- FrmDemo1.DatPointer.AddItem "Arrow and Question Mark"
- FrmDemo1.DatPointer.ListIndex = 0
- FrmDemo1.Links(0).URL = App.Path & IIf(Right(App.Path, 1) <> "\", "\", "") & "Demo"
- FrmDemo1.Links(1).URL = FrmDemo1.Links(0).URL
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
-